// Tuples 元组

type NUmberTypeArr = number[];
const arr1: (number | NUmberTypeArr)[] = [1, 2, [3, 4]];

type ReadonlyTuple = readonly [string, number];
const [aString, aNumber]: ReadonlyTuple = ["hello", 10];
console.log(aString, aNumber);

// 也可以在赋值的时候直接使用解构
const { fullName } = {
  fullName: "",
};

console.log(fullName);
